package org.apache.ocean.main.util;

import java.io.Serializable;

import com.ibm.icu.text.RawCollationKey;

public class CollationString implements Comparable<CollationString>, Serializable {
	private RawCollationKey rawCollationKey;
  private String string;
	
	public CollationString(RawCollationKey rawCollationKey, String string) {
		this.rawCollationKey = rawCollationKey;
		this.string = string;
	}

	public String toString() {
		return string;
	}
	
	public int compareTo(CollationString other) {
  	return rawCollationKey.compareTo(other.rawCollationKey);
  }
}
